﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void BtnOK_Click(object sender, EventArgs e)
    {
        //使用Spilt分离字符串；Literal
        this.LitSeparator.Text = "";
        string str = LblSeparator.Text.ToString();
        string[] idnum = str.Split('@');
        for (int i = 0; i < idnum.Length; i++)
        {
            LitSeparator.Text = "<font size=2px color='blue'>" + LitSeparator.Text + idnum[i].ToString() + "<br><br>";
        }
    }
}
